//
//  CPBaseViewModel.swift
//  cockpit
//
//  Created by Haijun Si on 2020/7/13.
//  Copyright © 2020 chenganrt. All rights reserved.
//

import Foundation
import CocoaLumberjack

protocol CPViewModelType {
    associatedtype Input
    associatedtype Output
    
    func transform(input: Input) -> Output
}


class CPBaseViewModel: NSObject {
    
    /// 销毁回调
    open func destory(){}
    
    /// 销毁
    deinit {
        print("ViewModel销毁 => \(self)")
        destory()
    }
    
}
